<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <title>4.数组的filter方法</title>
    </head>
    <body>
        <script type="text/javascript" >
            let arr = [1,3,5,7,9]

            let result = arr.filter(item => item >= 5)
            console.log(result)
            // console.log(arr)

        </script>
    </body>
</html>